﻿module lang.d.sts.statements.dblockstatement;

import lang.d.sts.statements.dstatement;
import lang.d.visitors.dvisitor;

class DBlockStatement: DStatement {
    private DStatement[] myStatements;

    public void addStatement(DStatement statement) {
        myStatements ~= statement;
        statement.setParent(this);
    }

    public DStatement[] getStatements() {
        return myStatements;
    }
    
    override public void accept(DVisitor visitor) {
       visitor.visitBlockStatement(this);
    }
}